package com.finace.money.data.bean;

import com.finace.money.common.util.DateUtil;

/**
 * Created by zhangpeng on 2017/12/9.
 */

public class HistoryLineBean extends BaseEntity{


    /**
     * m_Level : 1
     * m_ProductID : SR805
     * m_Body : {"m_ID":35856586,"m_BeginTime":2294844097,"m_EndTime":2294844153,"m_Volume":96,"m_TotalVolume":214100,"m_Open":{"m_Value":6145},"m_High":{"m_Value":6146},"m_Low":{"m_Value":6145},"m_Close":{"m_Value":6146},"m_OpenInterest":426824,"m_Money":{"m_Value":590006},"m_AveragePrice":{"m_Value":6152.383},"m_RequestID":10}
     * m_RequestID : 10
     */

    private int m_Level;
    private String m_ProductID;
    private MBodyBean m_Body;
    private int m_RequestID;

    public int getM_Level() {
        return m_Level;
    }

    public void setM_Level(int m_Level) {
        this.m_Level = m_Level;
    }

    public String getM_ProductID() {
        return m_ProductID;
    }

    public void setM_ProductID(String m_ProductID) {
        this.m_ProductID = m_ProductID;
    }

    public MBodyBean getM_Body() {
        return m_Body;
    }

    public void setM_Body(MBodyBean m_Body) {
        this.m_Body = m_Body;
    }

    public int getM_RequestID() {
        return m_RequestID;
    }

    public void setM_RequestID(int m_RequestID) {
        this.m_RequestID = m_RequestID;
    }

    public static class MBodyBean extends BaseEntity{
        /**
         * m_ID : 35856586
         * m_BeginTime : 2294844097
         * m_EndTime : 2294844153
         * m_Volume : 96
         * m_TotalVolume : 214100
         * m_Open : {"m_Value":6145}
         * m_High : {"m_Value":6146}
         * m_Low : {"m_Value":6145}
         * m_Close : {"m_Value":6146}
         * m_OpenInterest : 426824
         * m_Money : {"m_Value":590006}
         * m_AveragePrice : {"m_Value":6152.383}
         * m_RequestID : 10
         */

        private int m_ID;
        private long m_BeginTime;
        private long m_EndTime;
        private int m_Volume;
        private int m_TotalVolume;
        private MOpenBean m_Open;
        private MHighBean m_High;
        private MLowBean m_Low;
        private MCloseBean m_Close;
        private int m_OpenInterest;
        private MMoneyBean m_Money;
        private MAveragePriceBean m_AveragePrice;
        private int m_RequestID;

        public int getM_ID() {
            return m_ID;
        }

        public void setM_ID(int m_ID) {
            this.m_ID = m_ID;
        }

        public long getM_BeginTime() {
            return DateUtil.secretDateToTimeStamp(m_BeginTime);
        }

        public void setM_BeginTime(long m_BeginTime) {
            this.m_BeginTime = m_BeginTime;
        }

        public long getM_EndTime() {
            return DateUtil.secretDateToTimeStamp(m_EndTime);
        }

        public void setM_EndTime(long m_EndTime) {
            this.m_EndTime = m_EndTime;
        }

        public int getM_Volume() {
            return m_Volume;
        }

        public void setM_Volume(int m_Volume) {
            this.m_Volume = m_Volume;
        }

        public int getM_TotalVolume() {
            return m_TotalVolume;
        }

        public void setM_TotalVolume(int m_TotalVolume) {
            this.m_TotalVolume = m_TotalVolume;
        }

        public MOpenBean getM_Open() {
            return m_Open;
        }

        public void setM_Open(MOpenBean m_Open) {
            this.m_Open = m_Open;
        }

        public MHighBean getM_High() {
            return m_High;
        }

        public void setM_High(MHighBean m_High) {
            this.m_High = m_High;
        }

        public MLowBean getM_Low() {
            return m_Low;
        }

        public void setM_Low(MLowBean m_Low) {
            this.m_Low = m_Low;
        }

        public MCloseBean getM_Close() {
            return m_Close;
        }

        public void setM_Close(MCloseBean m_Close) {
            this.m_Close = m_Close;
        }

        public int getM_OpenInterest() {
            return m_OpenInterest;
        }

        public void setM_OpenInterest(int m_OpenInterest) {
            this.m_OpenInterest = m_OpenInterest;
        }

        public MMoneyBean getM_Money() {
            return m_Money;
        }

        public void setM_Money(MMoneyBean m_Money) {
            this.m_Money = m_Money;
        }

        public MAveragePriceBean getM_AveragePrice() {
            return m_AveragePrice;
        }

        public void setM_AveragePrice(MAveragePriceBean m_AveragePrice) {
            this.m_AveragePrice = m_AveragePrice;
        }

        public int getM_RequestID() {
            return m_RequestID;
        }

        public void setM_RequestID(int m_RequestID) {
            this.m_RequestID = m_RequestID;
        }

        public static class MOpenBean extends BaseEntity{
            /**
             * m_Value : 6145.0
             */

            private float m_Value;

            public float getM_Value() {
                return m_Value;
            }

            public void setM_Value(float m_Value) {
                this.m_Value = m_Value;
            }
        }

        public static class MHighBean extends BaseEntity{
            /**
             * m_Value : 6146.0
             */

            private float m_Value;

            public float getM_Value() {
                return m_Value;
            }

            public void setM_Value(float m_Value) {
                this.m_Value = m_Value;
            }
        }

        public static class MLowBean extends BaseEntity{
            /**
             * m_Value : 6145.0
             */

            private float m_Value;

            public float getM_Value() {
                return m_Value;
            }

            public void setM_Value(float m_Value) {
                this.m_Value = m_Value;
            }
        }

        public static class MCloseBean extends BaseEntity{
            /**
             * m_Value : 6146.0
             */

            private float m_Value;

            public float getM_Value() {
                return m_Value;
            }

            public void setM_Value(float m_Value) {
                this.m_Value = m_Value;
            }
        }

        public static class MMoneyBean extends BaseEntity{
            /**
             * m_Value : 590006.0
             */

            private float m_Value;

            public float getM_Value() {
                return m_Value;
            }

            public void setM_Value(float m_Value) {
                this.m_Value = m_Value;
            }
        }

        public static class MAveragePriceBean extends BaseEntity{
            /**
             * m_Value : 6152.383
             */

            private float m_Value;

            public float getM_Value() {
                return m_Value;
            }

            public void setM_Value(float m_Value) {
                this.m_Value = m_Value;
            }
        }
    }
}
